﻿@model WebUI.Models.CheckBoxListModel
@{
    AjaxOptions ajaxOpts = new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        UpdateTargetId = "FileTypesTable",
    };
}
<script type="text/javascript">
    $("#token").keyup(function () {
        $("#SearchForm").submit();
    });
</script>
@using (Ajax.BeginForm(MVC.Filters.SearchFileTypes(), ajaxOpts, new { @id = "SearchForm" }))
{
    <input id="token" type="text" name="token" />
   @Html.Hidden("All", Html.ConstructDelimitedString(Model.AllData))
   @Html.Hidden("Selected", Html.ConstructDelimitedString(Model.SelectedData))
}
<div id="FileTypesTable">
    @Html.Partial(MVC.Filters.Views._FileTypesTable, model: Model)
</div>